<ion-view title="审批">

  <!-- <div class="tabs-striped tabs-top tabs-background-statle tabs-color-positive">
    <div class="tabs">
      <a class="tab-item" ng-class="{active: 0 == state}" href="javascript: void(0);" ng-click="state = 0">
        全部
      </a>
      <a class="tab-item" ng-class="{active: 1 == state}" href="javascript: void(0);" ng-click="state = 1">
        待审
      </a>
      <a class="tab-item" ng-class="{active: 2 == state}" href="javascript: void(0);" ng-click="state = 2">
        已通过
      </a>
    </div>
  </div> -->

  <ion-content>
    <ion-refresher
        pulling-text="下拉刷新..."
        on-refresh="judgeListCtrl.doRefresh()">
    </ion-refresher>
    <div class="list">
      <div class="item item-avatar" ui-sref="tab.judge.detail({id: vacation.leaveId})" ng-repeat="vacation in judgeListCtrl.judgeList">
        <img ng-src="{{vacation.user.avatorImg?vacation.user.avatorImg : 'img/ben.png'}}">
        <h2>{{vacation.user.depart.departName}} {{vacation.user.name}}</h2>
        <p ng-repeat="item in vacation.leaveTimes" style="text-align: center">
          {{item.startTime | date:'MM月dd日HH点'}}~{{item.endTime | date:'MM月dd日HH点'}}
        </p>
        <div class="right-top-cornor">
          <p>{{findFirstType(vacation.type).name}}</p>
        </div>
      </div>
    </div>

    <div style="height: 50px"></div>
  </ion-content>
</ion-view>
